//
//  SetTradPwdViewController.m
//  WBBaseProject
//
//  Created by 吴斌 on 2018/3/12.
//  Copyright © 2018年 吴斌. All rights reserved.
//

#import "SetTradPwdViewController.h"
#import "TXTradePasswordView.h"
#import "SureTradPwdViewController.h"
@interface SetTradPwdViewController ()<TXTradePasswordViewDelegate>

@end

@implementation SetTradPwdViewController

#pragma mark - 生命周期 Life Circle
- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"设置交易密码";
    
    TXTradePasswordView *TXView = [[TXTradePasswordView alloc]initWithFrame:CGRectMake(0, 50,SCREEN_WIDTH, 200)];
    TXView.backgroundColor = [UIColor whiteColor];
    TXView.TXTradePasswordDelegate = self;
    
    [self.view addSubview:TXView];
}

#pragma mark  密码输入结束后调用此方法
-(void)TXTradePasswordView:(TXTradePasswordView *)view WithPasswordString:(NSString *)Password
{
    NSLog(@"密码 = %@",Password);
    //    [self showMessage:[NSString stringWithFormat:@"密码为 : %@",Password] duration:3];
    SureTradPwdViewController *vc = [[SureTradPwdViewController alloc] init];
    vc.tradPwd = Password;
    vc.isAddPwd = _isAddPwd;
    vc.oldPwd = _oldPwd;
    [self.navigationController pushViewController:vc animated:YES];
}


@end
